home *** CD-ROM | disk | FTP | other *** search
- /*
- (C) 1995 AROS - The Amiga Replacement OS
- $Id: addmemhandler.c 1.1 1995/11/14 22:31:07 digulla Exp digulla $
- $Log: addmemhandler.c $
- * Revision 1.1 1995/11/14 22:31:07 digulla
- * Initial revision
- *
- Desc:
- Lang: english
- */
- #include "exec_intern.h"
-
- /*****************************************************************************
-
- NAME */
- #include <exec/interrupts.h>
- #include <clib/exec_protos.h>
-
- __AROS_LH1(void, AddMemHandler,
-
- /* SYNOPSIS */
- __AROS_LA(struct Interrupt *, memHandler, A1),
-
- /* LOCATION */
- struct ExecBase *, SysBase, 129, Exec)
-
- /* FUNCTION
- Add some function to be called if the system is low on memory.
-
- INPUTS
- memHandler - An Interrupt structure to add to the low memory
- handler list.
-
- RESULT
-
- NOTES
-
- EXAMPLE
-
- BUGS
-
- SEE ALSO
- RemMemHandler()
-
- INTERNALS
-
- HISTORY
- 08-10-95 created by m. fleischer
- 26-10-95 digulla adjusted to new calling scheme
-
- ******************************************************************************/
- {
- __AROS_FUNC_INIT
-
- /* Protect the low memory handler list */
- Forbid ();
-
- /* Nothing spectacular: Just add the new node */
- Enqueue ((struct List *)&SysBase->ex_MemHandlers, &memHandler->is_Node);
-
- Permit ();
- __AROS_FUNC_EXIT
- } /* AddMemHandler */
-
-